% TEST_ID: LANG-EXPAND-0125
% CATEGORY: language/string
% 测试 string 的调整

function test_string_strjust()
C1 = {'Euler    ';
      'Fibonacci';
      '    Gauss'};
C2 = strjust(C1,'center');
ret = {'  Euler  '
    'Fibonacci'
    '  Gauss  '};
assert(isequal(C2, ret));

str1 = ["Skylab";
        "Mir   ";
        "ISS   "];
str2 = strjust(str1);
ret = ["Skylab"
    "   Mir"
    "   ISS"];
assert(isequal(str2, ret));